import http from '../https'
const url = 'http://82.157.143.31:8080'
//全部数据查询
const home = (obj) => http({
    url: `${url}/drugInventory/selectDrugInventory`,
    method: 'get',
    params: {
        ...obj
    }
})
//修改
const mod = (obj) => http({
    url: `${url}/drugInventory/updateDrugInventory`,
    method: 'post',
    data: {
        ...obj
    }
})
//导出
const Myexport = () => http({
    url: `${url}/drugInventory/export`,
    method: 'get',
    responseType: 'blob'
})
export {
    home,
    Myexport,
    mod
}